package com.cxf.windex.enums;

/**
 * @author chenxf
 * @date 4/11/2018
 * @description
 */
public enum TypeEnums {
  V0("0", "需要完善个人资料","wk.png"),
  V1("1", "需要完善支付密码","wk.png"),
  V2("2", "正式会员","wk.png"),
  V3("4", "管理员","wk.png");

  private final String key;
  private final String desc;
  private final String icon;

  private TypeEnums(String key, String desc,String icon) {
    this.key = key;
    this.desc = desc;
    this.icon=icon;
  }

  public static TypeEnums getIdType(String idType) {
    TypeEnums[] its = values();
    TypeEnums[] arr$ = its;
    int len$ = its.length;

    for(int i$ = 0; i$ < len$; ++i$) {
      TypeEnums it = arr$[i$];
      if (it.getKey() .equals( idType)) {
        return it;
      }
    }
    return V0;
  }

  public String getKey() {
    return this.key;
  }

  public String getDesc() {
    return this.desc;
  }

  public String getIcon() {
    return icon;
  }
}
